import java.util.Scanner;

public class Test {
    //二进制
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        while (in.hasNext()){
            String a=in.next();
            String b=in.next();
            System.out.println(add(a,b));
        }
    }
    public static String add(String a,String b){
        StringBuilder temp=new StringBuilder();
        int lenA=a.length();
        int lenB=b.length();
        int max=Math.max(lenA,lenB);
        boolean isCarry=false;
        StringBuilder StringBuilderA=new StringBuilder(a).reverse();
        StringBuilder StringBuilderB=new StringBuilder(b).reverse();


        for (int i = 0; i < max; i++) {
            char aChar=i>=lenA?'0':StringBuilderA.charAt(i);
            char bChar=i>=lenB?'0':StringBuilderB.charAt(i);
            if (aChar=='1'&&bChar=='1'){
                if (isCarry){
                    temp.append('1');
                }else temp.append('0');
                isCarry=true;
            } else if (aChar=='0'&&bChar=='0') {
                if (isCarry){
                    temp.append('1');
                }else temp.append('0');
                isCarry=false;

            }else {
                if (isCarry){
                    temp.append('0');
                }else temp.append('1');
            }
        }
        if (isCarry){
            temp.append('1');
        }
        return temp.reverse().toString();
    }

    //删除公共字符,
    public static void main02(String[] args) {
        Scanner in=new Scanner(System.in);
        while (in.hasNextInt()){
            String str1=in.nextLine();
            String str2=in.nextLine();
            String ret=func(str1,str2);
            System.out.println(ret);
        }
    }
    public static String func(String s1,String s2){
        StringBuilder temp=new StringBuilder();
        for (int i = 0; i < s1.length(); i++) {
            char ch=s1.charAt(i); //读取
            if (!s2.contains(ch+"")){
                temp.append(ch);
            }
        }
        return temp.toString();
    }



    //大写转小写
    public static void main01(String[] args) {
        Scanner in=new Scanner(System.in);
        while(in.hasNextInt()){
            String line=in.nextLine();
            if(Character.isUpperCase(line.charAt(0))){
                char c=(char) (line.charAt(0)+32);
                System.out.println(c);
            }
        }
    }
}
